<?xml version="1.0" encoding="UTF-8"?>
<ui:composition template="template.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:t="http://myfaces.apache.org/tomahawk"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:s="http://myfaces.apache.org/sandbox"
                xmlns:jwork="http://irian.at/jsfatwork"
        >
    <ui:define name="content">
        <h:form id="cform">
            <h3>Task Step 2</h3>
                <h:panelGrid columns="3">
                    <h:outputLabel for="project" value="project" />
                    <h:selectOneMenu id="project" value="#{taskBean.entity.project}" converter="#{taskBean.projectConverter}">
                        <t:selectItems var="project" itemLabel="#{project.name}" itemValue="#{project}" value="#{projectBean.readAllEntities}" />
                    </h:selectOneMenu>
                    <h:message for="project" styleClass="warning" />

                    <h:panelGroup />
                    <h:panelGroup>
                    <div class="buttons">
                        <h:commandLink styleClass="positive" action="/task3.xhtml" actionListener="#{taskBean.validate}" >
                            <img src="images/bullet_go.png" alt=""/>
                            Next step
                        </h:commandLink >
                    </div>
                    </h:panelGroup>
              </h:panelGrid>
        </h:form>
    </ui:define>
</ui:composition>
